<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Region extends Model
{
    protected $table = 'region';



    public static function selectOptionByPid($pid = 0)
    {
        return self::query()->where('pid', $pid)->orderBy('id')->pluck('name', 'id');
    }
}
